<div id="banner">
    {{title}}
</div>
<div class="container" style="margin-top: 10px">
    <form name="loginForm" class="form-horizontal" role="form" novalidate>
        <div class="form-group">
            <label for="inputPhone" class="col-xs-3 control-label sm-label label-phone">手机号码</label>
            <div class="col-xs-9"
                 ng-class="{'has-error has-feedback': loginForm.phone.$invalid && loginForm.phone.$dirty}">
                <input type="tel" name="phone" class="form-control" id="inputPhone" placeholder="手机号为登录账号"
                       required ng-model="form.phone">
                <!--<span ng-show="loginForm.phone.$valid" class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span>-->
                <span ng-show="loginForm.phone.$invalid && loginForm.phone.$dirty" class="glyphicon glyphicon-warning-sign form-control-feedback" aria-hidden="true"></span>
                <div class="warning"
                     ng-show="loginForm.phone.$invalid && loginForm.phone.$dirty">
                    <small
                            ng-show="loginForm.phone.$error.required">
                        请输入手机号
                    </small>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label for="inputPassword" class="col-xs-3 control-label sm-label label-psw">密码</label>
            <div class="col-xs-9"
                 ng-class="{'has-error has-feedback': loginForm.psw.$invalid && loginForm.psw.$dirty}">
                <input type="password" name="psw" class="form-control" id="inputPassword" placeholder="请输入密码"
                       required ng-model="form.psw">
                <!--<span ng-show="loginForm.psw.$valid" class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span>-->
                <span ng-show="loginForm.psw.$invalid && loginForm.psw.$dirty" class="glyphicon glyphicon-warning-sign form-control-feedback" aria-hidden="true"></span>
                <div class="warning"
                     ng-show="loginForm.psw.$invalid && loginForm.psw.$dirty">
                    <small
                            ng-show="loginForm.psw.$error.required">
                        请输入密码
                    </small>
                </div>
                <div class="error" ng-show="loginForm.$error.validate">
                    <small
                            ng-show="loginForm.$error.validate">
                        账号或密码错误
                    </small>
                </div>
            </div>
        </div>

        <div class="form-group">
            <div class="col-xs-offset-3 col-xs-9">
                <a href="#/register">没有账号? 注册</a>
            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-12  text-center">
                <button type="button" ng-click="submit()" class="btn btn-block btn-main btn-blue">登录</button>
            </div>
        </div>
    </form>
</div>
